package com.bds.btcdc.api.model;

import java.io.Serializable;

public class Result implements Serializable {
	private static final long serialVersionUID = 1L;
	// 返回码
	private Integer code;
	// 返回消息
	private String msg;
	// 返回数据对象
	private Object data;

	public Result() {
	}

	public Result(Integer code, String message) {
		this.code = code;
		this.msg = message;
	}

	public Result(Integer code, Object data) {
		this.code = code;
		this.data = data;
	}

	public void setResult(Integer code, String message) {
		this.code = code;
		this.msg = message;
	}

	public void setResult(Integer code, Object data) {
		this.code = code;
		this.data = data;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
